package com.neulogistics.contrib.procuredcenter.api.application.command;

import com.blackto.lib.mediat.unicast.IRequest;
import com.neulogistics.contrib.procuredcenter.api.application.validator.annotation.InList;
import com.neulogistics.contrib.procuredcenter.domain.model.valueobject.PurchaseItem;
import com.neulogistics.contrib.procuredcenter.domain.model.valueobject.VendorInfo;
import com.neulogistics.infrastructure.common.serviceresult.BaseResponse;
import lombok.Data;

import javax.validation.constraints.*;
import java.io.Serializable;
import java.util.Date;

/**
 * 只能新增进货类型采购单
 */
@Data
public class CreatePurchaseOrderCommand implements IRequest<BaseResponse<String>>, Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 关联中心库房id
     */
    @NotNull
    @Positive
    public Integer warehouseId;

    /**
     * 采购项，{商品id、数量、单价、计量单位、供应商}
     */
    @NotNull
    public PurchaseItem purchaseItem;

}
